/*****************************************************************************/
/**
 *	\file	enter.cpp
 *	\author	Xavier
 *	\date	2023/05/07
 *	\version	1.0
 *	\brief	系统入口
 *	\note	Copyright (c) 2020-2030 南京理工大学
 *	\remarks	无
 ******************************************************************************/
#include "head.h"

void enter(CMgr *mgrobj)
{
    assert(NULL != mgrobj);
    int kind_of_service;
    cout << "请选择服务类别:\n";
    cout << " 1->定房  2->入住  3->退房  4->查询:  ";
    kind_of_service = inputINT();
    if ((kind_of_service > 4) || (kind_of_service < 1))
    {
        cout << "您的输入有误，请重试!\n";
        kind_of_service = inputINT();
    }
    else
    {
        switch (kind_of_service)
        {
        case 1:
            book_room(mgrobj);
            break;
        case 2:
            check_in(mgrobj);
            break;
        case 3:
            check_out(mgrobj);
            break;
        case 4:
            inquire(mgrobj);
            break;
        }
    }
}